package June;
import java.util.Scanner;
public class Test_1_1 {
    public static void main(String[] args){
        //if单分支语句练习
        Scanner myscanner = new Scanner(System.in);
        System.out.print("请输入年龄：");
        int age = myscanner.nextInt();
        if(age >= 18){
            System.out.println("年满18，该负法律责任");
        }
    }
}
